package cn.itcast.service.stat.impl;

import cn.itcast.dao.stat.StatDao;
import cn.itcast.stat.StatService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class StatServiceImpl implements StatService {
    @Autowired
    private StatDao StatDao;
    @Override
    public List<Map<String, Object>> getFactoryData() {
        return StatDao.findFactoryData();
    }

    @Override
    public List<Map<String, Object>> findProductData(int number) {

        return StatDao.findProductData(number);
    }

    @Override
    public List<Map<String, Object>> findOnline() {
        return StatDao.findOnline();
    }
}
